#ifndef DRAWLIST_H
#define DRAWLIST_H

#include "AllInc.h"

class DrawList
{
public:
	DrawList();
	~DrawList();

	void Draw();
	void NeedRedraw(){need_redraw=true;}
	
protected:
	virtual void PureDraw()=0;
private:
	GLuint list_id;
	bool need_redraw;
	void BeginList();
	void EndList();

};

class SimpleDrawList
{
public:
	SimpleDrawList();
	~SimpleDrawList();

	void Draw();
	void BeginList();
	void EndList();
	
private:
	GLuint list_id;

};

#endif